package com.example.demo.service;

import com.example.demo.dto.StudentCourseInfo;
import com.example.demo.entity.Student;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface StudentService {
    int insertStudent(Student student);

    int deleteStudentById(int id);

    int updateStudent(Student student);

    Student selectStudentById(int id);

    List<Student> selectAllStudents();

    Student selectStudentWithCourses(int studentId);
    List<StudentCourseInfo> getCoursesByStudentId(@Param("studentId") Integer studentId);

    void addCourse(int id);
}
